from django.contrib.auth.models import User, Group, Permission, ContentType
from munkiwebadmin.reports.models import Machine, MunkiReport
from munkiwebadmin.inventory.models import InventoryItem
from rest_framework import serializers
from rest_framework.reverse import reverse

class UserSerializer(serializers.HyperlinkedModelSerializer):
    class Meta:
        model = User


class ContentTypeSerializer(serializers.HyperlinkedModelSerializer):
    class Meta:
        model = ContentType


class PermissionSerializer(serializers.HyperlinkedModelSerializer):
    class Meta:
        model = Permission


class GroupSerializer(serializers.HyperlinkedModelSerializer):
    class Meta:
        model = Group


class MachineSerializer(serializers.HyperlinkedModelSerializer):
    class Meta:
        model = Machine


class ReportSerializer(serializers.HyperlinkedModelSerializer):
    class Meta:
        model = MunkiReport


class InventoryItemSerializer(serializers.HyperlinkedModelSerializer):
    class Meta:
        model = InventoryItem
